﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MySql.Data.MySqlClient;

namespace TVendas.modelos
{
    public class Conexao
    {
        private static MySqlConnection conexao;

        public static MySqlConnection pegaConexao(){
            if(conexao==null){
                conexao = new MySqlConnection(" Persist Security Info=False;server=localhost;database=tvendas;uid=tvendas;server=tvendas;database=tvendas;uid=tvendas;pwd=tvendas");
            }
            return conexao;
        }
    }
}